<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>MenuBar</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">MenuBar()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#3A3966"><b>MenuBar</b></font>()  </blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Creates a separator bar in the current menu. 

 

</blockquote><p><b>参数</b></p><blockquote>
无.

</blockquote><p><b>返回值</b></p><blockquote>
无.


</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#3A3966">If</font></b> <font color="#3A3966">OpenWindow</font>(0, 200, 200, 200, 100, "MenuBar Example")
    <b><font color="#3A3966">If</font></b> <font color="#3A3966">CreateMenu</font>(0,<font color="#3A3966"> WindowID</font>(0))  <font color="#3A3966">; here the menu creating starts....</font>
<font color="#3A3966">      MenuTitle</font>("Project")
<font color="#3A3966">        MenuItem</font>(1, "Open")
<font color="#3A3966">        MenuBar</font>()                  <font color="#3A3966">; here the separator bar will be inserted</font>
<font color="#3A3966">        MenuItem</font>(4, "Close")
    <b><font color="#3A3966">EndIf</font></b>
    <b><font color="#3A3966">Repeat</font></b> : <b><font color="#3A3966">Until</font></b> <font color="#3A3966">WaitWindowEvent</font>() = <font color="#924B72">#PB_Event_CloseWindow</font>
  <b><font color="#3A3966">EndIf</font></b>
</font></pre>
<p><img src="../HelpPictures/menubar.png"></p>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="menutitle.html">MenuTitle()</a>, <a href="menuitem.html">MenuItem()</a>, <a href="opensubmenu.html">OpenSubMenu()</a>, <a href="createmenu.html">CreateMenu()</a>, <a href="createpopupmenu.html">CreatePopupMenu()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=ismenu.html>IsMenu()</a> - <a href="index.html">Menu Index</a> - <a href="menuheight.html">MenuHeight()</a> -&gt;<br><br>

</body></html>